package cn.com.ejiakanghu.dto;

import org.linlinjava.litemall.db.domain.AgedmallStore;

public class GoodsStoreInfo {
    private Long id;
    private String name;
    private String logo;
    private int starScore;
    private String telPhone;
    private int isSelf;
    private int leaseGoodsCount;
    private int saleGoodsCount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public int getStarScore() {
        return starScore;
    }

    public void setStarScore(int starScore) {
        this.starScore = starScore;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public int getIsSelf() {
        return isSelf;
    }

    public void setIsSelf(int isSelf) {
        this.isSelf = isSelf;
    }

    public int getLeaseGoodsCount() {
        return leaseGoodsCount;
    }

    public void setLeaseGoodsCount(int leaseGoodsCount) {
        this.leaseGoodsCount = leaseGoodsCount;
    }

    public int getSaleGoodsCount() {
        return saleGoodsCount;
    }

    public void setSaleGoodsCount(int saleGoodsCount) {
        this.saleGoodsCount = saleGoodsCount;
    }

    public static GoodsStoreInfo getInstance(AgedmallStore agedmallStore){
        GoodsStoreInfo storeInfo = new GoodsStoreInfo();
        storeInfo.setId(agedmallStore.getId());
        storeInfo.setLogo(agedmallStore.getLogo());
        storeInfo.setName(agedmallStore.getStoreName());
        storeInfo.setStarScore(agedmallStore.getStarScore());
        storeInfo.setTelPhone(agedmallStore.getPhone());
        storeInfo.setIsSelf(agedmallStore.getOwnOptFlg());
        return storeInfo;
    }
}
